source /root/admin-openstack.sh

#Keystone上完成服务的注册glance的服务和endpoint
openstack service create --name glance --description "OpenStack Image service" image
openstack endpoint create --region RegionOne   image public http://{{ GLANCE_IP }}:9292
openstack endpoint create --region RegionOne   image internal http://{{ GLANCE_IP }}:9292
openstack endpoint create --region RegionOne   image admin http://{{ GLANCE_IP }}:9292

